import request from '@/utils/request'

// 查询实时监控_平台查岗列表
export function listPtcg(query) {
  return request({
    url: '/system/ptcg/list',
    method: 'get',
    params: query
  })
}

// 查询实时监控_平台查岗详细
export function getPtcg(id) {
  return request({
    url: '/system/ptcg/' + id,
    method: 'get'
  })
}

// 新增实时监控_平台查岗
export function addPtcg(data) {
  return request({
    url: '/system/ptcg',
    method: 'post',
    data: data
  })
}

// 修改实时监控_平台查岗
export function updatePtcg(data) {
  return request({
    url: '/system/ptcg',
    method: 'put',
    data: data
  })
}

// 删除实时监控_平台查岗
export function delPtcg(id) {
  return request({
    url: '/system/ptcg/' + id,
    method: 'delete'
  })
}
